<template>
    <div>
        <h1>404</h1>
        <van-empty description="页面坏掉了">
            <van-button round type="primary" class="bottom-button" @click="goHome">返回首页</van-button>
        </van-empty>


    </div>
</template>
<script lang='ts' setup>
import router from '@/router';
function goHome() {
    router.push('/home')
}
</script>
<style lang='less' scoped>
h1 {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin-top: 100px;
}

.bottom-button {
    width: 160px;
    height: 40px;
}
</style>